﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    xmlns:QueueLoad_controls="clr-namespace:QueueLoad.controls" 
    x:Class="QueueLoad.MainPage"
    d:DesignWidth="640" d:DesignHeight="480" Height="Auto" Width="Auto">
    <StackPanel x:Name="LayoutRoot" Orientation="Vertical">

        <Image Width="200">
            <Image.Source>
                <BitmapImage UriSource="/Lighthouse.jpg" />
            </Image.Source>
        </Image>

        <ScrollViewer Height="300" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
            <ScrollViewer.Content>
                <StackPanel  x:Name="imgContainer" Orientation="Horizontal">

                </StackPanel>
            </ScrollViewer.Content>
        </ScrollViewer>


        <Button x:Name="btnLoad" Content="队列加载图片" Width="120" HorizontalAlignment="Center" Click="btnLoad_Click" Margin="0,10,0,0"/>
    </StackPanel>
</Window>
